////////////////////////////////////////////////////////////
//
// Name:   dxfctable.h
//
// Author: Steven Michael
//
// Date:   6/25/05
//
// Description:
//
// Stores the native color table for DXF files
//
// Copyright (C) 2005 MIT Lincoln Laboratory
// 
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, 
// Boston, MA  02110-1301  USA
//
////////////////////////////////////////////////////////////

#ifndef _DXFCTABLE_H_
#define _DXFCTABLE_H_

const RGB DXF::colorTable[256] = {
  {1.0f, 0.0f, 0.0f},
  {1.0f, 1.0f, 0.0f},
  {0.0f, 1.0f, 0.0f},
  {0.0f, 1.0f, 1.0f},
  {0.0f, 0.0f, 1.0f},
  {1.0f, 0.0f, 1.0f},
  {0.0f, 0.0f, 0.0f},
  {0.502f, 0.502f, 0.502f},
  {0.7529f, 0.7529f, 0.7529f},
  {1.0f, 0.003922f, 0.003922f},
  {1.0f, 0.498f, 0.498f},
  {0.6471f, 0.0f, 0.0f},
  {0.6471f, 0.3216f, 0.3216f},
  {0.498f, 0.0f, 0.0f},
  {0.498f, 0.2471f, 0.2471f},
  {0.298f, 0.0f, 0.0f},
  {0.298f, 0.149f, 0.149f},
  {0.149f, 0.0f, 0.0f},
  {0.149f, 0.07451f, 0.07451f},
  {1.0f, 0.2471f, 0.0f},
  {1.0f, 0.6235f, 0.498f},
  {0.6471f, 0.1608f, 0.0f},
  {0.6471f, 0.4039f, 0.3216f},
  {0.498f, 0.1216f, 0.0f},
  {0.498f, 0.3098f, 0.2471f},
  {0.298f, 0.07451f, 0.0f},
  {0.298f, 0.1843f, 0.149f},
  {0.149f, 0.03529f, 0.0f},
  {0.149f, 0.0902f, 0.07451f},
  {1.0f, 0.498f, 0.0f},
  {1.0f, 0.749f, 0.498f},
  {0.6471f, 0.3216f, 0.0f},
  {0.6471f, 0.4863f, 0.3216f},
  {0.498f, 0.2471f, 0.0f},
  {0.498f, 0.3725f, 0.2471f},
  {0.298f, 0.149f, 0.0f},
  {0.298f, 0.2235f, 0.149f},
  {0.149f, 0.07451f, 0.0f},
  {0.149f, 0.1098f, 0.07451f},
  {1.0f, 0.749f, 0.0f},
  {1.0f, 0.8745f, 0.498f},
  {0.6471f, 0.4863f, 0.0f},
  {0.6471f, 0.5686f, 0.3216f},
  {0.498f, 0.3725f, 0.0f},
  {0.498f, 0.4353f, 0.2471f},
  {0.298f, 0.2235f, 0.0f},
  {0.298f, 0.2588f, 0.149f},
  {0.149f, 0.1098f, 0.0f},
  {0.149f, 0.1294f, 0.07451f},
  {1.0f, 1.0f, 0.003922f},
  {1.0f, 1.0f, 0.498f},
  {0.6471f, 0.6471f, 0.0f},
  {0.6471f, 0.6471f, 0.3216f},
  {0.498f, 0.498f, 0.0f},
  {0.498f, 0.498f, 0.2471f},
  {0.298f, 0.298f, 0.0f},
  {0.298f, 0.298f, 0.149f},
  {0.149f, 0.149f, 0.0f},
  {0.149f, 0.149f, 0.07451f},
  {0.749f, 1.0f, 0.0f},
  {0.8745f, 1.0f, 0.498f},
  {0.4863f, 0.6471f, 0.0f},
  {0.5686f, 0.6471f, 0.3216f},
  {0.3725f, 0.498f, 0.0f},
  {0.4353f, 0.498f, 0.2471f},
  {0.2235f, 0.298f, 0.0f},
  {0.2588f, 0.298f, 0.149f},
  {0.1098f, 0.149f, 0.0f},
  {0.1294f, 0.149f, 0.07451f},
  {0.498f, 1.0f, 0.0f},
  {0.749f, 1.0f, 0.498f},
  {0.3216f, 0.6471f, 0.0f},
  {0.4863f, 0.6471f, 0.3216f},
  {0.2471f, 0.498f, 0.0f},
  {0.3725f, 0.498f, 0.2471f},
  {0.149f, 0.298f, 0.0f},
  {0.2235f, 0.298f, 0.149f},
  {0.07451f, 0.149f, 0.0f},
  {0.1098f, 0.149f, 0.07451f},
  {0.2471f, 1.0f, 0.0f},
  {0.6235f, 1.0f, 0.498f},
  {0.1608f, 0.6471f, 0.0f},
  {0.4039f, 0.6471f, 0.3216f},
  {0.1216f, 0.498f, 0.0f},
  {0.3098f, 0.498f, 0.2471f},
  {0.07451f, 0.298f, 0.0f},
  {0.1843f, 0.298f, 0.149f},
  {0.03529f, 0.149f, 0.0f},
  {0.0902f, 0.149f, 0.07451f},
  {0.003922f, 1.0f, 0.003922f},
  {0.498f, 1.0f, 0.498f},
  {0.0f, 0.6471f, 0.0f},
  {0.3216f, 0.6471f, 0.3216f},
  {0.0f, 0.498f, 0.0f},
  {0.2471f, 0.498f, 0.2471f},
  {0.0f, 0.298f, 0.0f},
  {0.149f, 0.298f, 0.149f},
  {0.0f, 0.149f, 0.0f},
  {0.07451f, 0.149f, 0.07451f},
  {0.0f, 1.0f, 0.2471f},
  {0.498f, 1.0f, 0.6235f},
  {0.0f, 0.6471f, 0.1608f},
  {0.3216f, 0.6471f, 0.4039f},
  {0.0f, 0.498f, 0.1216f},
  {0.2471f, 0.498f, 0.3098f},
  {0.0f, 0.298f, 0.07451f},
  {0.149f, 0.298f, 0.1843f},
  {0.0f, 0.149f, 0.03529f},
  {0.07451f, 0.149f, 0.0902f},
  {0.0f, 1.0f, 0.498f},
  {0.498f, 1.0f, 0.749f},
  {0.0f, 0.6471f, 0.3216f},
  {0.3216f, 0.6471f, 0.4863f},
  {0.0f, 0.498f, 0.2471f},
  {0.2471f, 0.498f, 0.3725f},
  {0.0f, 0.298f, 0.149f},
  {0.149f, 0.298f, 0.2235f},
  {0.0f, 0.149f, 0.07451f},
  {0.07451f, 0.149f, 0.1098f},
  {0.0f, 1.0f, 0.749f},
  {0.498f, 1.0f, 0.8745f},
  {0.0f, 0.6471f, 0.4863f},
  {0.3216f, 0.6471f, 0.5686f},
  {0.0f, 0.498f, 0.3725f},
  {0.2471f, 0.498f, 0.4353f},
  {0.0f, 0.298f, 0.2235f},
  {0.149f, 0.298f, 0.2588f},
  {0.0f, 0.149f, 0.1098f},
  {0.07451f, 0.149f, 0.1294f},
  {0.003922f, 1.0f, 1.0f},
  {0.498f, 1.0f, 1.0f},
  {0.0f, 0.6471f, 0.6471f},
  {0.3216f, 0.6471f, 0.6471f},
  {0.0f, 0.498f, 0.498f},
  {0.2471f, 0.498f, 0.498f},
  {0.0f, 0.298f, 0.298f},
  {0.149f, 0.298f, 0.298f},
  {0.0f, 0.149f, 0.149f},
  {0.07451f, 0.149f, 0.149f},
  {0.0f, 0.749f, 1.0f},
  {0.498f, 0.8745f, 1.0f},
  {0.0f, 0.4863f, 0.6471f},
  {0.3216f, 0.5686f, 0.6471f},
  {0.0f, 0.3725f, 0.498f},
  {0.2471f, 0.4353f, 0.498f},
  {0.0f, 0.2235f, 0.298f},
  {0.149f, 0.2588f, 0.298f},
  {0.0f, 0.1098f, 0.149f},
  {0.07451f, 0.1294f, 0.149f},
  {0.0f, 0.498f, 1.0f},
  {0.498f, 0.749f, 1.0f},
  {0.0f, 0.3216f, 0.6471f},
  {0.3216f, 0.4863f, 0.6471f},
  {0.0f, 0.2471f, 0.498f},
  {0.2471f, 0.3725f, 0.498f},
  {0.0f, 0.149f, 0.298f},
  {0.149f, 0.2235f, 0.298f},
  {0.0f, 0.07451f, 0.149f},
  {0.07451f, 0.1098f, 0.149f},
  {0.0f, 0.2471f, 1.0f},
  {0.498f, 0.6235f, 1.0f},
  {0.0f, 0.1608f, 0.6471f},
  {0.3216f, 0.4039f, 0.6471f},
  {0.0f, 0.1216f, 0.498f},
  {0.2471f, 0.3098f, 0.498f},
  {0.0f, 0.07451f, 0.298f},
  {0.149f, 0.1843f, 0.298f},
  {0.0f, 0.03529f, 0.149f},
  {0.07451f, 0.0902f, 0.149f},
  {0.003922f, 0.003922f, 1.0f},
  {0.498f, 0.498f, 1.0f},
  {0.0f, 0.0f, 0.6471f},
  {0.3216f, 0.3216f, 0.6471f},
  {0.0f, 0.0f, 0.498f},
  {0.2471f, 0.2471f, 0.498f},
  {0.0f, 0.0f, 0.298f},
  {0.149f, 0.149f, 0.298f},
  {0.0f, 0.0f, 0.149f},
  {0.07451f, 0.07451f, 0.149f},
  {0.2471f, 0.0f, 1.0f},
  {0.6235f, 0.498f, 1.0f},
  {0.1608f, 0.0f, 0.6471f},
  {0.4039f, 0.3216f, 0.6471f},
  {0.1216f, 0.0f, 0.498f},
  {0.3098f, 0.2471f, 0.498f},
  {0.07451f, 0.0f, 0.298f},
  {0.1843f, 0.149f, 0.298f},
  {0.03529f, 0.0f, 0.149f},
  {0.0902f, 0.07451f, 0.149f},
  {0.498f, 0.0f, 1.0f},
  {0.749f, 0.498f, 1.0f},
  {0.3216f, 0.0f, 0.6471f},
  {0.4863f, 0.3216f, 0.6471f},
  {0.2471f, 0.0f, 0.498f},
  {0.3725f, 0.2471f, 0.498f},
  {0.149f, 0.0f, 0.298f},
  {0.2235f, 0.149f, 0.298f},
  {0.07451f, 0.0f, 0.149f},
  {0.1098f, 0.07451f, 0.149f},
  {0.749f, 0.0f, 1.0f},
  {0.8745f, 0.498f, 1.0f},
  {0.4863f, 0.0f, 0.6471f},
  {0.5686f, 0.3216f, 0.6471f},
  {0.3725f, 0.0f, 0.498f},
  {0.4353f, 0.2471f, 0.498f},
  {0.2235f, 0.0f, 0.298f},
  {0.2588f, 0.149f, 0.298f},
  {0.1098f, 0.0f, 0.149f},
  {0.1294f, 0.07451f, 0.149f},
  {1.0f, 0.003922f, 1.0f},
  {1.0f, 0.498f, 1.0f},
  {0.6471f, 0.0f, 0.6471f},
  {0.6471f, 0.3216f, 0.6471f},
  {0.498f, 0.0f, 0.498f},
  {0.498f, 0.2471f, 0.498f},
  {0.298f, 0.0f, 0.298f},
  {0.298f, 0.149f, 0.298f},
  {0.149f, 0.0f, 0.149f},
  {0.149f, 0.07451f, 0.149f},
  {1.0f, 0.0f, 0.749f},
  {1.0f, 0.498f, 0.8745f},
  {0.6471f, 0.0f, 0.4863f},
  {0.6471f, 0.3216f, 0.5686f},
  {0.498f, 0.0f, 0.3725f},
  {0.498f, 0.2471f, 0.4353f},
  {0.298f, 0.0f, 0.2235f},
  {0.298f, 0.149f, 0.2588f},
  {0.149f, 0.0f, 0.1098f},
  {0.149f, 0.07451f, 0.1294f},
  {1.0f, 0.0f, 0.498f},
  {1.0f, 0.498f, 0.749f},
  {0.6471f, 0.0f, 0.3216f},
  {0.6471f, 0.3216f, 0.4863f},
  {0.498f, 0.0f, 0.2471f},
  {0.498f, 0.2471f, 0.3725f},
  {0.298f, 0.0f, 0.149f},
  {0.298f, 0.149f, 0.2235f},
  {0.149f, 0.0f, 0.07451f},
  {0.149f, 0.07451f, 0.1098f},
  {1.0f, 0.0f, 0.2471f},
  {1.0f, 0.498f, 0.6235f},
  {0.6471f, 0.0f, 0.1608f},
  {0.6471f, 0.3216f, 0.4039f},
  {0.498f, 0.0f, 0.1216f},
  {0.498f, 0.2471f, 0.3098f},
  {0.298f, 0.0f, 0.07451f},
  {0.298f, 0.149f, 0.1843f},
  {0.149f, 0.0f, 0.03529f},
  {0.149f, 0.07451f, 0.0902f},
  {0.3294f, 0.3294f, 0.3294f},
  {0.4627f, 0.4627f, 0.4627f},
  {0.5961f, 0.5961f, 0.5961f},
  {0.7294f, 0.7294f, 0.7294f},
  {0.8627f, 0.8627f, 0.8627f},
  {0.9882f, 0.9882f, 0.9882f}
};
#endif
